﻿using System;

namespace DAPNet
{
    public class SampleCollection
    {
        private Sample[] samples;


        internal SampleCollection(int count)
        {
            this.samples = new Sample[count];
        }

        public int Count
        {
            get 
            { 
                return samples.Length; 
            }
        }

        public Sample this[int index]
        {
            get 
            { 
                return samples[index]; 
            }
            set 
            { 
                samples[index] = value; 
            }
        }

        public SampleCollection Clone()
        {
            SampleCollection clone = new SampleCollection(Count);
            for (int i = 0; i < Count; i++)
            {
                clone[i] = samples[i].Clone();
            }
            return clone;
        }
    }
}
